package com.bh.ly.oa.activity;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.ListView;
import android.widget.TextView;

import com.bh.ly.oa.BaseActivity;
import com.bh.ly.oa.R;
import com.bh.ly.oa.adapter.SupplierSaleDailyDtlAdapter;

public class SupplierSaleDailyDetailActivity extends BaseActivity{
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.good_sale_detail);
		ImageButton button = (ImageButton) findViewById(R.id.back_button);
		button.setVisibility(View.VISIBLE);
		button.setOnClickListener(new OnClickListener() {
			
			public void onClick(View v) {
				finish();
			}
		});
		initDatas();
	}

	private void initDatas() {
		TextView title=(TextView)(findViewById(R.id.title_textview));
		title.setText("商品销售明细");
		ListView listView = ((ListView) findViewById(R.id.good_sale_detail));   
		listView.setAdapter(new SupplierSaleDailyDtlAdapter(this,getIntent().getStringExtra("json")));
	}
}
